//
//  SettingsModel.h
//  SettingsPage
//
//  Created by CPX on 2018/6/13.
//  Copyright © 2018年 CPX. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^Block)(void);
typedef void(^SwitchBlock)(BOOL isOn);

/**
 基类设置Model
 @author yzl
 */
@interface SettingsModel : NSObject

@property (nonatomic,copy) NSString *title;
@property (nonatomic,copy) NSString *subTitle;
@property (nonatomic,copy) NSString *accessoryText;
@property (nonatomic,copy) NSString *icon;

@property (nonatomic,strong) Class targetClass;
@property (nonatomic,strong) Block block;
@property (nonatomic,strong) SwitchBlock switchBlock;

@property (nonatomic,strong) id object;


@property (nonatomic) BOOL switcherEnable;
@property (nonatomic) BOOL selected; 

@end

/**
 基类设置Push Model
 @author yzl
 */
@interface SettingsPushModel :SettingsModel
@end

/**
 基类设置开关Model
 @author yzl
 */
@interface SettingsSwitchModel :SettingsModel
@end

/**
 基类设置选择Model
 @author yzl
 */
@interface SettingsSelectModel :SettingsModel
@end
